package com.hanamaki.struct;

import java.util.Scanner;

public class IfDemo01 {

    public static void main(String[] args) {

        int java = 50;
        int en = 71;
        if (java > 90 && en > 80) {
            System.out.println("武功秘籍");
        } else if (java == 100 || en > 70) {
            System.out.println("武功秘籍");
        } else {
            System.out.println("No");

        }


        Scanner scanner = new Scanner(System.in);
        double score = 0;
        if (scanner.hasNextDouble()) {
            score = scanner.nextDouble();
        }

        if (score >= 90) {
            System.out.println("优秀");
        } else if (score>=80) {
            System.out.println("良好");
        } else if (score >= 60) {
            System.out.println("中等");
        } else {
            System.out.println("差");
        }

        scanner.close();


    }
}
